package com.example.ppe_digicode;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
//import android.widget.EditText;


public class MainActivity extends Activity {
	
	public final static String EXTRA_MESSAGE = "com.example.ppe_digicode.MESSAGE";


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    	

    
	public void afficherDigicode (View view) 
	{
	    Intent intent_digi = new Intent(this, AfficherDigicode.class);
	    //EditText editText = (EditText)findViewById(R.id.digicode);
	    String message ="7589a";
	    intent_digi.putExtra(EXTRA_MESSAGE, message);
	    startActivity(intent_digi);

	}
	
	public void afficherWifi (View view) 
	{
	    Intent intent_wifi = new Intent(this, AfficherWifi.class);
	    //EditText editText = (EditText)findViewById(R.id.digicode);
	    String message ="7589a";
	    intent_wifi.putExtra(EXTRA_MESSAGE, message);
	    startActivity(intent_wifi);

	}
	


}


